package edu.ncsu.monopoly;

public abstract class Cell {
	private String name;
	protected Player theOwner;
	private boolean available = true;

	public String getName() {
		return name;
	}

	public Player getTheOwner() {
		return theOwner;
	}

	public int getPrice() {
		return 0;
	}

	public boolean isAvailable() {
		return available;
	}

	public abstract Boolean playAction(String msg);

	public void setAvailable(boolean available) {
		this.available = available;
	}

	void setName(String name) {
		this.name = name;
	}

	public void setTheOwner(Player theOwner) {
		this.theOwner = theOwner;
	}

	public String toString() {
		return name;
	}
}
